import { isBrowser } from "./index.ts";

export default function isDocumentVisible(): boolean {
  if (isBrowser) {
    return document.visibilityState !== "hidden";
  }
  return true;
}
